package com.hesicare.health.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 55097
 */
@Component
public class Jobs {


    protected final static Logger LOGGER = LoggerFactory.getLogger(Jobs.class);

    //@Scheduled(cron = "0 0 2 * * ?")
    public void backupMysql() {
        LOGGER.info("数据库备份定时器,开始备份数据库{}", new Date());
        LOGGER.info("数据库备份定时器结束{}", new Date());
    }
}
